@extends('layouts.admin')
@section('content')
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="{{url('Admin/info')}}">首页</a> &raquo; <a href="{{url('Admin/navigator')}}">自定义导航</a> &raquo; 添加栏目
    </div>
    <!--面包屑导航 结束-->

	<!--结果集标题与导航组件 开始-->
	<div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
            @if(count($errors)>0)
            <div class="mark">
                @foreach($errors as $err)
                <p>{{$err}}</p>
                @endforeach
            </div>
            @endif
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{{url('Admin/navigator')}}"><i class="fa fa-adjust"></i>导航列表</a>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
    
    <div class="result_wrap">
        <form action="{{url('Admin/navigator')}}" method="post" >
            {{csrf_field()}}
            <table class="add_tab">
                <tbody>
                    <tr>
                        <th><i class="require">*</i> 栏目名称：</th>
                        <td>
                            <input type="text" name="nav_name">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th>所属目录</th>
                        <td>
                            <select name="parent_id" id="">
                                <option value="0"> == 顶级菜单 == </option>
                                @foreach($parent as $v)
                                    <option value="{{$v->nav_id}}"> {{$v->nav_name}} </option>
                                    @endforeach
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>栏目标题：</th>
                        <td>
                            <input type="text" name="nav_title" class="lg">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i> 导航链接：</th>
                        <td>
                            <input type="text" name="nav_url">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th> 排序：</th>
                        <td>
                            <input type="text" class="sm" name="sort">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是短文本长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th>表錢描述</th>
                        <td>
                            <textarea name="nav_desc" id="" cols="30" rows="10"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                </tbody>
            </table>

        </form>

    </div>

    <script>


    </script>
@endsection
